#include<iostream>
#include<iomanip>
using namespace std;

int main()
{
    int n;
    cin >> n;
    int sum = 0;
    int a = 0;
    for(int i = 0; i<n;i++)
    {
        cin >> a;
        sum = sum + a;
    }
    double average = sum /(double) n;
    cout << sum << " " << fixed << setprecision(5) << average << endl;
    return 0;
}